import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Controls.Styles 1.1

Button {
    property var parent_dialog

    signal buttonSelected(var button, var dialog)
    onClicked: buttonSelected(this, parent_dialog);

    style: ButtonStyle {
        label: Text {
            antialiasing: true
            renderType: Text.NativeRendering
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignHCenter
            text: control.text
            font.pixelSize: 20
            color: control.pressed ? "white" : "black"
        }
        background: Rectangle {
            antialiasing: true
            implicitWidth: 130
            implicitHeight: 45
            border.width: control.activeFocus ? 2 : 1
            border.color: "#888"
            radius: 8
            color: control.pressed ? "gray" : "#EEEEEE"
        }
    }
}
